Xbasic

INNER_RECT Function

Syntax

V INNER_RECT(N XPos,N YPos,N Width,N Height)

Arguments

XPos

The horizontal coordinate of the upper left corner of the shape. Larger values move right.

YPos

The vertical coordinate of the upper left corner of the shape. Larger values move down.

Width

The width of the rectangle.

Height

The height of the rectangle.

Description

Draw the inside of a rectangle.

Discussion

The INNER_RECT() function draws a rectangle filled with the current brush color. There is no border. Compare with the FILL_RECT()and RECT()functions.

images/GR_inner_rect.gif
ui_bitmap_create("test", 4, 2)
ui_bitmap_draw("test",<<%code%
inner_Rect(0, 0, 4, 2)
set_brush("green")
set_pen("black")
inner_rect(1, .5, 2, 1)
%code%)
ui_dlg_box("","{image=test}")

Limitations

Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().

See Also